# coding = utf-8

'''
找到相应的voxel spacing
'''

import os
import SimpleITK as sitk
import numpy as np

def find_voxel_spacing():
    data_path = "E:\Dataset\Qiye\DongBeiDaXue2\image_venous"
    for item in sorted(os.listdir(data_path)):
        file_name = os.path.join(data_path, item )
        data = sitk.ReadImage(file_name)
        print(np.array(data.GetSpacing()))
        break



if __name__ == '__main__':
    find_voxel_spacing()